package com.ddone.finance.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author ddone
 * @date 2024/4/16-22:03
 */
@Data
@ApiModel(description="注册对象")
public class RegisterVO {


    @NotNull
    @ApiModelProperty(value = "用户类型")
    private Integer userType;

    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号")
    private String mobile;

    @NotBlank
    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码")
    private String code;

    @NotBlank
    @Length(min = 6,message = "密码长度必须在6位以上")
    @ApiModelProperty(value = "密码")
    private String password;
}
